<?php
namespace Home\Model;

use Think\Model;

//洗车店铺model
class ServerModel extends Model{

	/**
     * [getServer 按条件搜索店铺详情]
     * @author xiezy
     * @date   2017-09-11
     * @param  [type]     $where [条件是否为空]
     * @param  [type]     $group [分组条件]
     * @param  [type]     $order [排序条件]
     * @return [type]            [返回查询结果]
     */
	public function getServer($where = null,$group=null,$order=null){

	}
    /**
     * 獲取待加入店鋪的人員列表
     * @return unknown
     */
	public function get_wait_join_staff($is_staff='0'){
	    $checkJoinWhere['p_id'] = session('userinfo')['id'];
	    $checkJoinWhere['is_staff'] = $is_staff;
// 	    p($checkJoinWhere);
	    $waitJoinList = $this->where($checkJoinWhere)->select();
	    
	    return $waitJoinList;
	}
}
